package com.bawei.module_player.adapter.provider

import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import com.bawei.module_player.PlayerEntity
import com.bawei.module_player.databinding.PlayerTitlteViewBinding

import com.chad.library.adapter.base.provider.BaseItemProvider
import com.chad.library.adapter.base.viewholder.BaseViewHolder

/**
 * @Author : yaotianxue
 * @Time : On 2023/6/12 11:11
 * @Description : TitleViewProvider
 */
class TitleViewProvider(override val itemViewType: Int, override val layoutId: Int) :BaseItemProvider<PlayerEntity.Item>(){

    override fun convert(helper: BaseViewHolder, item: PlayerEntity.Item) {
       helper.getBinding<PlayerTitlteViewBinding>()?.item = item
    }

    override fun onViewHolderCreated(viewHolder: BaseViewHolder, viewType: Int) {
        DataBindingUtil.bind<PlayerTitlteViewBinding>(viewHolder.itemView)
    }






}